<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:82:"E:\phpstudy2016\WWW\shopsum\public/../application/admin\view\count\procedures.html";i:1520564028;s:57:"E:\phpstudy2016\WWW\shopsum\application\public\admin.html";i:1520912952;}*/ ?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?php echo lang('添加土建'); ?>-<?php echo \think\Config::get('title'); ?></title>
    <link rel="stylesheet" href="../../../../public/static/public/boo3/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
    <link rel="stylesheet" href="__PUBLIC__/index/css/sytle.css">
    <script src="__PUBLIC__/public/js/jquery-2.1.4.min.js"></script>
    <script src="__PUBLIC__/public/js/vue.min.js"></script>
    <script src="__PUBLIC__/public/js/jquery.transit.js"></script>
    <script src="__PUBLIC__/public/js/jquery.timers-1.2.js"></script>
    <script src="__PUBLIC__/public/layer-v3.1.1/layer/layer.js"></script>
    <style>
        #container{
            padding: 0 30px;
        }
        nav{
            background-color: #f5f5f5;
            padding: 10px 20px;
            z-index: 99;
            margin-bottom: 15px;
        }
        @media screen and (max-width: 800px) {
            nav{
                display: none;
            }
        }
    </style>
    <script>
        var DINDEX = '/admin/index';
        var DUSER = '/admin/user';
        var DADMIN = '/admin';
        var DJOURNALISM = '/admin/journalism';
        var DCOUNT = '/admin/count';
        //页面
        function yeMian(url,fn = 1,this_json = {title:'信息',area:['400px','450px']}) {

            var index = layer.open($.extend({type:2,content:url,end:function () {
                    if(typeof fn != 'number' ){
                        fn();
                    }
                }},this_json));
        }

        //看图
        function loock_img(url) {
            url = url.data('img');
            if((typeof url) != 'string'){
                layer.msg('没有数据查看',{icon:2});
                return;
            }
            layer.open({
                type:2,
                title:false,
                closeBtn:false,
                area:['100%','100%'],
                content:"<?php echo url('loock/index',['on'=>'true']); ?>?url="+url
            })
        }
    </script>
    

<script src="__PUBLIC__/public/validform/Validform_v5.3.2_min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/public/validform/style.css">
<!--图片-->
<link rel="stylesheet" href="__PUBLIC__/public/bian-ji-qi/themes/default/default.css"/>
<script src="__PUBLIC__/public/bian-ji-qi/kindeditor.js"></script>
<script src="__PUBLIC__/public/bian-ji-qi/lang/zh_CN.js"></script>
<script>
    KindEditor.ready(function (K) {
        var editor = K.editor({
            allowFileManager: true
        });

        K('#image3').click(function () {
            editor.loadPlugin('image', function () {
                editor.plugin.imageDialog({
                    showRemote: false,
                    imageUrl: K('#url3').val(),
                    clickFn: function (url, title, width, height, border, align) {
                        K('#url3').val(url);
                        editor.hideDialog();
                    }
                });
            });
        });
        K('#image4').click(function () {
            editor.loadPlugin('image', function () {
                editor.plugin.imageDialog({
                    showRemote: false,
                    imageUrl: K('#url4').val(),
                    clickFn: function (url, title, width, height, border, align) {
                        K('#url4').val(url);
                        editor.hideDialog();
                    }
                });
            });
        });
    });

</script>


</head>
<body>

<nav>
       <small><i class="fa fa-institution"></i></small> 首页 > <?php echo \think\Config::get('this_user_name'); if(\think\Request::instance()->param('on') == 'true'): ?>
       <a href="javascript:;" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name));"  title="关闭当前页面" class="btn btn-xs btn-default fa-pull-right " style="margin-left: 10px"><i class="fa fa-close"></i></a>
        <?php endif; ?>
    <a href="javascript:location.reload();" title="刷新" class="btn btn-xs btn-success fa-pull-right"><i class="fa fa-refresh"></i></a>
</nav>


<div id="container">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;"><?php echo lang('添加土建'); ?></a></li>
    </ul>

    <div style="height: 20px;"></div>
    <div>
        <form action="<?php echo url('procedures'); ?>" method="post" id="form0" enctype="multipart/form-data">
            <input type="hidden" name="id" value="<?php echo \think\Request::instance()->param('id'); ?>">
            <div class="row">
                <div class="pull-left col-xs-4">
                    <div class="form-group input-group  select-right">
                        <label class="input-group-addon"><?php echo lang('手续名称'); ?></label>
                        <input type="text"  class="form-control" value="<?php echo $data['name']; ?>" disabled>
                    </div>
                    <div class="form-group input-group  select-right">
                        <label class="input-group-addon"><?php echo lang('办理手续文号'); ?></label>
                        <input type="text" name="index" class="form-control" datatype="*1-30" value="<?php echo $data['index']; ?>">
                    </div>
                    <div class="form-group input-group   select-right">
                        <label class="input-group-addon"><?php echo lang('开具证明单位'); ?></label>
                        <input type="text" name="company" class="form-control" datatype="s1-50" value="<?php echo $data['company']; ?>">
                    </div>
                    <?php echo lang('上传证明扫描件'); ?>
                    <div class="form-group input-group  select-right">
                        <input type="text" name="company_img" datatype="*" id="url3" class="form-control" value="<?php echo $data['company_img']; ?>">
                        <label class="input-group-addon" id="image3">上传</label>
                    </div>
                    <div class="form-group input-group  select-right">
                        <label class="input-group-addon"><?php echo lang('办理费用'); ?></label>
                        <input type="text" name="money" class="form-control" datatype="*1-10" value="<?php echo $data['money']; ?>">
                    </div>
                    <div class="form-group   select-right">
                        <label><?php echo lang('描述'); ?></label>
                        <textarea name="text" cols="30" rows="3" class="form-control" datatype="s1-200"><?php echo $data['text']; ?></textarea>
                    </div>
                    <div class="form-group  text-center col-xs-8">
                        <button class="btn btn-info" id="html"><?php echo lang('立即提交'); ?></button>
                    </div>
                </div>
                <div class="pull-left col-xs-4">
                    <div class="form-group input-group  select-right">

                        <input type="hidden" name="payment_money" class="form-control" datatype="*1-10" value="<?php echo $data['payment_money']; ?>">
                    </div>


                    <div class="form-group input-group  select-right">
                        <input type="hidden" name="payment_img"   class="form-control" value="<?php echo $data['payment_img']; ?>">

                    </div>

                </div>
            </div>


        </form>

    </div>

</div>


</body>
</html>

<!--日期-->
<link rel="stylesheet" href="__PUBLIC__/public/time/css/jedate.css">
<script src="__PUBLIC__/public/time/jquery.jedate.min.js"></script>

<script>
    (() => {


        //表单验证
        var form = $('form').Validform({
            tiptype: 4,
            ajaxPost: true,
            beforeSubmit: function () {
                    layer.load(2);
            },
            callback: function (da) {
                layer.closeAll();
                if (da == 1) {
                    form.resetForm();
                    window.parent.location.reload(); //子窗口 刷新父页面
                    layer.msg('<?php echo lang("成功"); ?>', {icon: 1});
                }
                else {
                    console.log(da);
                    layer.msg('<?php echo lang("失败"); ?>', {icon: 2});
                }
            }

        });



    })();
</script>
